package com.nkym.wypan.enums;
public enum FileType {

    // 文本文件
    TXT(1, "txt"), DOC(2, "doc"), DOCX(3, "docx"), XLS(4, "xls"), XLSX(5, "xlsx"), PPT(6, "ppt"), PPTX(7, "pptx"),
    PDF(8, "pdf"), HTML(9, "html"), XML(10, "xml"), JSON(11, "json"), YAML(12, "yaml"),

    // 图像文件
    JPG(13, "jpg"), JPEG(14, "jpeg"), PNG(15, "png"), BMP(16, "bmp"), GIF(17, "gif"), WEBP(18, "webp"), SVG(19, "svg"),

    // 音频文件
    MP3(20, "mp3"), WAV(21, "wav"), FLAC(22, "flac"), AAC(23, "aac"), APE(24, "ape"),

    // 视频文件
    MP4(25, "mp4"), AVI(26, "avi"), MOV(27, "mov"), RMVB(28, "rmvb"), MKV(29, "mkv"), WMV(30, "wmv"),

    // 压缩文件
    ZIP(31, "zip"), RAR(32, "rar"), _7Z(33, "7z"), TAR_GZ(34, "tar.gz"), BZ2(35, "bz2"),

    // 应用程序文件
    EXE(36, "exe"), MSI(37, "msi"), DMG(38, "dmg"), DEB(39, "deb"), RPM(40, "rpm"), APK(41, "apk"), IPA(42, "ipa"),

    // 数据库文件
    DB(43, "db"), SQLITE(44, "sqlite"), MDB(45, "mdb"), ACCDB(46, "accdb"), SQL(47, "sql"),

    // 字体文件
    TTF(48, "ttf"), OTF(49, "otf"), WOFF(50, "woff"), WOFF2(51, "woff2"),

    // 代码文件
    JAVA(52, "java"), C(53, "c"), CPP(54, "cpp"), PY(55, "py"), RUBY(56, "rb"), PHP(57, "php"), JS(58, "js"),
    CSS(59, "css"), LESS(60, "less"), SCSS(61, "scss"), SASS(62, "sass"),

    // 日志文件
    LOG(63, "log"), CSV(64, "csv"),

    // 电子书文件
    EPUB(65, "7"), MOBI(66, "mobi"),

    // 矢量图文件
    AI(67, "ai"), EPS(68, "eps"), PSD(69, "psd"),

    // 其他文件类型
    OTHER(99, "other");

    private final int code;
    private final String suffix;

    FileType(int code, String suffix) {
        this.code = code;
        this.suffix = suffix;
    }

    public int getCode() {
        return code;
    }

    public String getSuffix() {
        return suffix;
    }
}
